#ifndef __MAC_H
#define __MAC_H

#include "xlowpan.h"

#define MAC_HANDLER(X,Y,Z) void X (void* Y, unsigned int Z)

void MAC_SetHandler(void (*X)(void*, unsigned int));
void MAC_SetBCastHandler(void (*X)(struct xlowpan_addr64* from, void*, unsigned char hops, unsigned int));

int MAC_CheckRadio(void);

void MAC_Transmit(void* data, unsigned int maxlength);

void MAC_Decode(struct xlowpan_addr64* from, unsigned char* data, unsigned char hops, unsigned char maxlength);

#endif